package priv.menguer.observer.controller;

/**
 * @Title OctalObserver.java
 * @description TODO
 * @time 2018年10月26日 上午11:23:12
 * @author menguer@126.com
 * @version 1.0
 */
public class OctalObserver extends Observer {

	public OctalObserver(Subject subject) {
		this.subject = subject;
		this.subject.attach(this);
	}

	@Override
	public void update() {
		System.out.println("Octal String: " + Integer.toOctalString(subject.getState()));
	}
}
